import request from '../../utils/Request'

export const saveSite = data => {
    return request({
        method: 'post',
        url: '/api/cms/site/save',
        data: data
    })
}

export const createSite = data => {
    return request({
        method: 'post',
        url: '/api/cms/site/create',
        data: data
    })
}

export const updateSite = (data, ukId) => {
    return request({
        method: 'post',
        url: '/api/cms/site/update/' + ukId,
        data: data
    })
}

export const updateSiteStatus = (ukId, status) => {
    return request({
        method: 'get',
        url: '/api/cms/site/' + ukId + "/status/" + status,
        params: {}
    })
}

export const deleteSite = ukId => {
    return request({
        method: 'get',
        url: '/api/cms/site/delete/' + ukId,
        params: {}
    })
}

export const listSite = data => {
    return request({
        method: 'get',
        url: '/api/cms/site/list',
        params: data
    })
}

export const selectSite = ukId => {
    return request({
        method: 'get',
        url: '/api/cms/site/select/' + ukId,
        params: {}
    })
}